package com.hu.zhcc.shiro.service.xy.service.impl;


import com.hu.zhcc.shiro.dao.xy.TAssessQuestionMapper;
import com.hu.zhcc.shiro.entity.xy.pojo.TAssessQuestion;
import com.hu.zhcc.shiro.service.xy.service.TAssessQuestionService;
import org.omg.CORBA.BAD_CONTEXT;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
@Service
public class TAssessQuestionImpl implements TAssessQuestionService {
    @Autowired
    private TAssessQuestionMapper tAssessQuestionMapper;


    @Override
    public List<TAssessQuestion> queryAllQuestion(Integer bankId) {
        return tAssessQuestionMapper.queryAllQuestion(bankId);
    }

    @Override
    public List<TAssessQuestion> queryAllAnswers(Integer bankId,Integer userId) {
        return tAssessQuestionMapper.queryAllAnswers(bankId,userId);
    }
}
